#include "cjgorderprocess.h"
#include "global.h"

CJgOrderProcess::CJgOrderProcess() {}

bool CJgOrderProcess::IsMidCheck()
{
    return this->mProcessBrief == MID_CHECK_PROCESS;
}

bool CJgOrderProcess::IsNormal()
{
    if (this->IsSendOut())
    {
        return false;
    }
    if (this->IsMidCheck())
    {
        return false;
    }
    if (this->IsInterrupt())
    {
        return false;
    }
    if (this->IsOutLine())
    {
        return false;
    }
    if (this->IsSecondPackup())
    {
        return false;
    }
    if (this->IsSkip())
    {
        return false;
    }
    return true;
}

bool CJgOrderProcess::IsInterrupt()
{
    return this->mProcessBrief == INTERRUPT_PROCESS;
}

bool CJgOrderProcess::IsOutLine()
{
    return this->miProcessAttri == OUT_LINE_PROCESS_ATTRI;
}

bool CJgOrderProcess::IsSecondPackup()
{
    return this->mProcessBrief == SECONDPACKUP_PROCESS;
}

bool CJgOrderProcess::IsSkip()
{
    return this->miProcessAttri == SKIP_PROCESS_ATTRI;
}

bool CJgOrderProcess::IsSendOut()
{
    return this->mProcessBrief == SEND_OUT_PROCESS;
}
